package com.qfjy.liushen;

/**
 * @author: Listen
 * @date: 2022/9/13 19:22
 * @version: 1.0
 */
public class Proxy implements Rent {
    private Host host;
    public Proxy() {
    }
    public Proxy(Host host) {
        this.host = host;
    }public void rent() {
        host.rent();
    }
    //代理自有的行为
    public void hetong() {
        System.out.println("签合同");
    }
}
